<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'Page\MallController@index');

Route::group(['namespace' => 'Page','middleware' => ['wechat.oauth', 'auth']], function () {
    //个人中心
    Route::get('user/fan', 'UserController@fan');
    Route::get('user/manage', 'UserController@manage');
    Route::get('user/orderlist', 'UserController@orderlist');
    Route::get('user/orderdetail', 'UserController@orderdetail');
    Route::get('user/usercenter', 'UserController@usercenter');
    Route::get('user/coin_jb', 'UserController@coin_jb');
    Route::get('user/coin_zs', 'UserController@coin_zs');
    Route::get('user/qrcode', 'UserController@qrcode');
    Route::get('user/mobile_tips', 'UserController@mobile_tips');
    Route::get('user/coupon', 'UserController@coupon');

    //商城
    Route::get('mall', 'MallController@index');
    Route::get('mall/index', 'MallController@index');
    Route::get('mall/detail', 'MallController@detail');
    Route::get('mall/langren', 'MallController@langren');
    Route::get('mall/guoji', 'MallController@guoji');
});

